package com.stream;


public class Test {
    public static void main(String[] args) {
        System.out.println("二进制:" + Integer.toBinaryString(4));
        System.out.println("十六进制:" + Integer.toHexString(60));

        System.out.println("十六进制最后1位:" + (60 & 15));
        int x = 60 >>> 4;
        System.out.println("十六进制最后2位:" + (x & 15));

        System.out.println(5 & 2);

        int num = 1;
        switch (num) {
            default:
                System.out.println("default");
                break;
            case 1:
                System.out.println("1");
                break;
            case 2:
                System.out.println("2");
        }

        label:
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 4; j++) {
                if (j % 2 == 1) {
                    continue label;
                }
                System.out.print(j);
            }
            System.out.println();
        }
        System.out.println();
        String[][] arr = new String[3][];


        Integer n = 1000;
        Integer m = 2000;
        System.out.println(n + "-" + m);
        add(n, m);
        System.out.println(n + "-" + m);

        String test="test";
        add(test);
        System.out.println(test);
    }

    public static void add(Integer x, Integer y) {
        x = x + 1;
        y = y + 1;
    }
    public static void add(String y) {
        y = y + 1;
    }
}
